import request from '@/utils/request'

// 查询活动报名登记列表
export function listEnroll(query) {
  return request({
    url: '/apm/enroll/list',
    method: 'get',
    params: query
  })
}

// 审批报名
export function approveEnroll(data) {
  return request({
    url: '/apm/enroll/approveEnroll',
    method: 'post',
    data: data
  })
}
// 查询活动报名登记详细
export function getEnroll(enrollId) {
  return request({
    url: '/apm/enroll/' + enrollId,
    method: 'get'
  })
}

// 新增活动报名登记
export function addEnroll(data) {
  return request({
    url: '/apm/enroll',
    method: 'post',
    data: data
  })
}

// 修改活动报名登记
export function updateEnroll(data) {
  return request({
    url: '/apm/enroll',
    method: 'put',
    data: data
  })
}

// 删除活动报名登记
export function delEnroll(enrollId) {
  return request({
    url: '/apm/enroll/' + enrollId,
    method: 'delete'
  })
}
